.grid {
  &-pd {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
  }
}
.flex {
  display: flex;
  &-js {
    display: flex;
    justify-content: space-between;
  }
  &-c {
    display: flex;
    flex-direction: column;
  }
  &-center {
    display: flex;
    align-items: center;
    //   justify-content: center;
  }
  &-w {
    display: flex;
    flex-wrap: wrap;
    //   justify-content: center;
  }
}
view {
  box-sizing: border-box;
}
.fw {
  font-weight: 700;
}

.l-price {
  text-decoration: line-through;
}
.yellow {
  color: #ffe300;
}
.green {
  color: #00cb64;
}
.red {
  color: #ff5656;
}
.blue {
  color: #2567ff;
}
.c {
  color: #8b949d;
}
.line-1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.line-2 {
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.line(@i) when(@i <= 5) {
  .line-@{i} {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: @i;
  }
  .line((@i + 1));
}

.line(1);

.grid(@i) when(@i <= 10) {
  .grid-@{i} {
    grid-template-columns: repeat(@i, 1fr);
    display: grid;
  }
  .grid((@i + 1));
}

.grid(2);

.m-p(@i) when(@i<=100) {
  .mr@{i} {
    margin-right: @i+0px;
  }
  .ml@{i} {
    margin-left: @i+0px;
  }
  .mb@{i} {
    margin-bottom: @i+0px;
  }
  .pr@{i} {
    padding-right: @i+0px;
  }
  .pd@{i} {
    padding-bottom: @i+0px;
  }
  .pt@{i} {
    padding-top: @i+0px;
  }
  .m-p((@i+5));
}

.m-p(5);

@start: 12;
@max: 60;
@step: 2;

.font-size-loop(@i) when (@i <= @max) {
  .f@{i} {
    font-size: @i+0px;
  }
  .font-size-loop(@i + @step);
}

.font-size-loop(@start);

.divider {
  position: relative;
  width: 1px;
  transform: translateX(-50%) scaleX(1);
}
.divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1px;
  height: 50px;
  background-color: #bfc7ce;
  transform: translateX(-50%) scaleX(0.5);
}

.hide-scroll {
  &::-webkit-scrollbar {
    display: none;
  }
}
